import request from '@/utils/request'

// 查询质量目标考核列表
export function listNcQualityGoalAssessment(query) {
  return request({
    url: '/business/NcQualityGoalAssessment/list',
    method: 'get',
    params: query
  })
}

// 查询质量目标考核详细
export function getNcQualityGoalAssessment(id) {
  return request({
    url: '/business/NcQualityGoalAssessment/' + id,
    method: 'get'
  })
}

// 新增质量目标考核
export function addNcQualityGoalAssessment(data) {
  return request({
    url: '/business/NcQualityGoalAssessment',
    method: 'post',
    data: data
  })
}

// 修改质量目标考核
export function updateNcQualityGoalAssessment(data) {
  return request({
    url: '/business/NcQualityGoalAssessment',
    method: 'put',
    data: data
  })
}

// 删除质量目标考核
export function delNcQualityGoalAssessment(id) {
  return request({
    url: '/business/NcQualityGoalAssessment/' + id,
    method: 'delete'
  })
}
